#obj = {'a' => 0}

class Foo
    def initialize()
        @a = 0
    end

    attr_accessor :a
end

obj = Foo.new

(0 .. 1000000).each do
    #obj['a'] += 1
    obj.a += 1
end

#puts obj['a']
puts obj.a
